package com.learning.jquizenglish.activity;

import android.content.Intent;
import android.os.Bundle;

import com.learning.jquizenglish.screen.doquiz.DoQuizScreen;
import com.learning.jquizenglish.screen.doquiz.DoQuizScreen.DoQuizMode;

public class DoQuizActivity extends BaseAudioPlayerActivity {

	public static final String DO_QUIZ_MODE_KEY = "_doquizmode";
	public static final int RESULT_MODE = 1;
	
	@Override
	protected void onCreate(Bundle arg0) {
		super.onCreate(arg0);
		DoQuizScreen doQuizScreen = new DoQuizScreen();
		Intent intent = getIntent();
		if (intent.getIntExtra(DO_QUIZ_MODE_KEY,-1) == RESULT_MODE) {
			doQuizScreen.setMode(DoQuizMode.RESULT);
		}
		switchContent(doQuizScreen, false);
	}
}
